import { createApp } from 'vue'
import './style.css'
import VueCookies from 'vue-cookies'
import * as echarts from 'echarts'

import App from './App.vue'
// @ts-ignore
import router from "./router/index"

const app = createApp(App)

app.directive('myfocus',{
    mounted: (el, binding) => {
        if (binding.value == true || binding.value == undefined) {
            el.focus()
        }
    }
    // created初始化、beforeMount、mounted挂载、beforeUpdate、updated更新、beforeUnmount、unmounted销毁
});

app.use(router)
app.mount('#app')
app.config.globalProperties.$cookies = VueCookies
app.config.globalProperties.$echarts = echarts

